<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8" />
		<meta name="author" content="wangbo" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>对象</title>
	</head>
	<body>
		<script>
			// es6
			class STUDENT {
				constructor(name, age) {
					this.name = name
					this.age = age
          this.school="学校"
				}
				say() {
					console.log("人生如逆旅,我亦是行人--->"+this.name+this.school)
				}
			}
      let student = new STUDENT("张三",10)
      console.log(student.name)
      student.say()
		</script>
	</body>
</html>
